Integrand size = 29, antiderivative size = 874 \[ \int (f+g x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2 \, dx=\frac {B^2 (b c-a d)^3 g^3 x}{6 b^3 d^3}+\frac {B^2 (b c-a d)^2 g^2 (4 b d f-3 b c g-a d g) x}{4 b^3 d^3}+\frac {B^2 (b c-a d)^2 g^3 (c+d x)^2}{12 b^2 d^4}+\frac {B^2 (b c-a d)^4 g^3 \log \left (\frac {a+b x}{c+d x}\right )}{6 b^4 d^4}+\frac {B^2 (b c-a d)^3 g^2 (4 b d f-3 b c g-a d g) \log \left (\frac {a+b x}{c+d x}\right )}{4 b^4 d^4}-\frac {B (b c-a d) g \left (a^2 d^2 g^2-2 a b d g (2 d f-c g)+b^2 \left (6 d^2 f^2-8 c d f g+3 c^2 g^2\right )\right ) (a+b x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b^4 d^3}-\frac {B (b c-a d) g^2 (4 b d f-3 b c g-a d g) (c+d x)^2 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{4 b^2 d^4}-\frac {B (b c-a d) g^3 (c+d x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{6 b d^4}-\frac {B (b c-a d) (2 b d f-b c g-a d g) \left (2 a b d^2 f g-a^2 d^2 g^2-b^2 \left (2 d^2 f^2-2 c d f g+c^2 g^2\right )\right ) \log \left (\frac {b c-a d}{b (c+d x)}\right ) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b^4 d^4}-\frac {(b f-a g)^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 b^4 g}+\frac {(f+g x)^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 g}+\frac {B^2 (b c-a d)^4 g^3 \log (c+d x)}{6 b^4 d^4}+\frac {B^2 (b c-a d)^3 g^2 (4 b d f-3 b c g-a d g) \log (c+d x)}{4 b^4 d^4}+\frac {B^2 (b c-a d)^2 g \left (a^2 d^2 g^2-2 a b d g (2 d f-c g)+b^2 \left (6 d^2 f^2-8 c d f g+3 c^2 g^2\right )\right ) \log (c+d x)}{2 b^4 d^4}-\frac {B^2 (b c-a d) (2 b d f-b c g-a d g) \left (2 a b d^2 f g-a^2 d^2 g^2-b^2 \left (2 d^2 f^2-2 c d f g+c^2 g^2\right )\right ) \operatorname {PolyLog}\left (2,\frac {d (a+b x)}{b (c+d x)}\right )}{2 b^4 d^4} \]
1/6*B^2*(-a*d+b*c)^3*g^3*x/b^3/d^3+1/4*B^2*(-a*d+b*c)^2*g^2*(-a*d*g-3*b*c* g+4*b*d*f)*x/b^3/d^3+1/12*B^2*(-a*d+b*c)^2*g^3*(d*x+c)^2/b^2/d^4+1/6*B^2*( -a*d+b*c)^4*g^3*ln((b*x+a)/(d*x+c))/b^4/d^4+1/4*B^2*(-a*d+b*c)^3*g^2*(-a*d *g-3*b*c*g+4*b*d*f)*ln((b*x+a)/(d*x+c))/b^4/d^4-1/2*B*(-a*d+b*c)*g*(a^2*d^ 2*g^2-2*a*b*d*g*(-c*g+2*d*f)+b^2*(3*c^2*g^2-8*c*d*f*g+6*d^2*f^2))*(b*x+a)* (A+B*ln(e*(b*x+a)/(d*x+c)))/b^4/d^3-1/4*B*(-a*d+b*c)*g^2*(-a*d*g-3*b*c*g+4 *b*d*f)*(d*x+c)^2*(A+B*ln(e*(b*x+a)/(d*x+c)))/b^2/d^4-1/6*B*(-a*d+b*c)*g^3 *(d*x+c)^3*(A+B*ln(e*(b*x+a)/(d*x+c)))/b/d^4-1/2*B*(-a*d+b*c)*(-a*d*g-b*c* g+2*b*d*f)*(2*a*b*d^2*f*g-a^2*d^2*g^2-b^2*(c^2*g^2-2*c*d*f*g+2*d^2*f^2))*l n((-a*d+b*c)/b/(d*x+c))*(A+B*ln(e*(b*x+a)/(d*x+c)))/b^4/d^4-1/4*(-a*g+b*f) ^4*(A+B*ln(e*(b*x+a)/(d*x+c)))^2/b^4/g+1/4*(g*x+f)^4*(A+B*ln(e*(b*x+a)/(d* x+c)))^2/g+1/6*B^2*(-a*d+b*c)^4*g^3*ln(d*x+c)/b^4/d^4+1/4*B^2*(-a*d+b*c)^3 *g^2*(-a*d*g-3*b*c*g+4*b*d*f)*ln(d*x+c)/b^4/d^4+1/2*B^2*(-a*d+b*c)^2*g*(a^ 2*d^2*g^2-2*a*b*d*g*(-c*g+2*d*f)+b^2*(3*c^2*g^2-8*c*d*f*g+6*d^2*f^2))*ln(d *x+c)/b^4/d^4-1/2*B^2*(-a*d+b*c)*(-a*d*g-b*c*g+2*b*d*f)*(2*a*b*d^2*f*g-a^2 *d^2*g^2-b^2*(c^2*g^2-2*c*d*f*g+2*d^2*f^2))*polylog(2,d*(b*x+a)/b/(d*x+c)) /b^4/d^4
Time = 0.63 (sec) , antiderivative size = 733, normalized size of antiderivative = 0.84 \[ \int (f+g x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2 \, dx=\frac {(f+g x)^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2-\frac {B \left (6 A b d (b c-a d) g^2 \left (a^2 d^2 g^2+a b d g (-4 d f+c g)+b^2 \left (6 d^2 f^2-4 c d f g+c^2 g^2\right )\right ) x+6 B d (b c-a d) g^2 \left (a^2 d^2 g^2+a b d g (-4 d f+c g)+b^2 \left (6 d^2 f^2-4 c d f g+c^2 g^2\right )\right ) (a+b x) \log \left (\frac {e (a+b x)}{c+d x}\right )+3 b^2 d^2 (b c-a d) g^3 (4 b d f-b c g-a d g) x^2 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )+2 b^3 d^3 (b c-a d) g^4 x^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )+6 d^4 (b f-a g)^4 \log (a+b x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )-6 B (b c-a d)^2 g^2 \left (a^2 d^2 g^2+a b d g (-4 d f+c g)+b^2 \left (6 d^2 f^2-4 c d f g+c^2 g^2\right )\right ) \log (c+d x)-6 b^4 (d f-c g)^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)+B (b c-a d) g^4 \left (b d (b c-a d) x (2 b c+2 a d-b d x)+2 a^3 d^3 \log (a+b x)-2 b^3 c^3 \log (c+d x)\right )-3 B (b c-a d) g^3 (-4 b d f+b c g+a d g) \left (-a^2 d^2 \log (a+b x)+b \left (d (-b c+a d) x+b c^2 \log (c+d x)\right )\right )-3 B d^4 (b f-a g)^4 \left (\log (a+b x) \left (\log (a+b x)-2 \log \left (\frac {b (c+d x)}{b c-a d}\right )\right )-2 \operatorname {PolyLog}\left (2,\frac {d (a+b x)}{-b c+a d}\right )\right )+3 b^4 B (d f-c g)^4 \left (\left (2 \log \left (\frac {d (a+b x)}{-b c+a d}\right )-\log (c+d x)\right ) \log (c+d x)+2 \operatorname {PolyLog}\left (2,\frac {b (c+d x)}{b c-a d}\right )\right )\right )}{3 b^4 d^4}}{4 g} \]
((f + g*x)^4*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2 - (B*(6*A*b*d*(b*c - a *d)*g^2*(a^2*d^2*g^2 + a*b*d*g*(-4*d*f + c*g) + b^2*(6*d^2*f^2 - 4*c*d*f*g + c^2*g^2))*x + 6*B*d*(b*c - a*d)*g^2*(a^2*d^2*g^2 + a*b*d*g*(-4*d*f + c* g) + b^2*(6*d^2*f^2 - 4*c*d*f*g + c^2*g^2))*(a + b*x)*Log[(e*(a + b*x))/(c + d*x)] + 3*b^2*d^2*(b*c - a*d)*g^3*(4*b*d*f - b*c*g - a*d*g)*x^2*(A + B* Log[(e*(a + b*x))/(c + d*x)]) + 2*b^3*d^3*(b*c - a*d)*g^4*x^3*(A + B*Log[( e*(a + b*x))/(c + d*x)]) + 6*d^4*(b*f - a*g)^4*Log[a + b*x]*(A + B*Log[(e* (a + b*x))/(c + d*x)]) - 6*B*(b*c - a*d)^2*g^2*(a^2*d^2*g^2 + a*b*d*g*(-4* d*f + c*g) + b^2*(6*d^2*f^2 - 4*c*d*f*g + c^2*g^2))*Log[c + d*x] - 6*b^4*( d*f - c*g)^4*(A + B*Log[(e*(a + b*x))/(c + d*x)])*Log[c + d*x] + B*(b*c - a*d)*g^4*(b*d*(b*c - a*d)*x*(2*b*c + 2*a*d - b*d*x) + 2*a^3*d^3*Log[a + b* x] - 2*b^3*c^3*Log[c + d*x]) - 3*B*(b*c - a*d)*g^3*(-4*b*d*f + b*c*g + a*d *g)*(-(a^2*d^2*Log[a + b*x]) + b*(d*(-(b*c) + a*d)*x + b*c^2*Log[c + d*x]) ) - 3*B*d^4*(b*f - a*g)^4*(Log[a + b*x]*(Log[a + b*x] - 2*Log[(b*(c + d*x) )/(b*c - a*d)]) - 2*PolyLog[2, (d*(a + b*x))/(-(b*c) + a*d)]) + 3*b^4*B*(d *f - c*g)^4*((2*Log[(d*(a + b*x))/(-(b*c) + a*d)] - Log[c + d*x])*Log[c + d*x] + 2*PolyLog[2, (b*(c + d*x))/(b*c - a*d)])))/(3*b^4*d^4))/(4*g)
Time = 1.54 (sec) , antiderivative size = 1069, normalized size of antiderivative = 1.22, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.138, Rules used = {2954, 2798, 2804, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int (f+g x)^3 \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )^2 \, dx\) |
\(\Big \downarrow \) 2954 |
\(\displaystyle (b c-a d) \int \frac {\left (b f-a g-\frac {(d f-c g) (a+b x)}{c+d x}\right )^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{\left (b-\frac {d (a+b x)}{c+d x}\right )^5}d\frac {a+b x}{c+d x}\) |
\(\Big \downarrow \) 2798 |
\(\displaystyle (b c-a d) \left (\frac {\left (-\frac {(a+b x) (d f-c g)}{c+d x}-a g+b f\right )^4 \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )^2}{4 g (b c-a d) \left (b-\frac {d (a+b x)}{c+d x}\right )^4}-\frac {B \int \frac {(c+d x) \left (b f-a g-\frac {(d f-c g) (a+b x)}{c+d x}\right )^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{(a+b x) \left (b-\frac {d (a+b x)}{c+d x}\right )^4}d\frac {a+b x}{c+d x}}{2 g (b c-a d)}\right )\) |
\(\Big \downarrow \) 2804 |
\(\displaystyle (b c-a d) \left (\frac {\left (-\frac {(a+b x) (d f-c g)}{c+d x}-a g+b f\right )^4 \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )^2}{4 g (b c-a d) \left (b-\frac {d (a+b x)}{c+d x}\right )^4}-\frac {B \int \left (\frac {(b c-a d)^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) g^4}{b d^3 \left (b-\frac {d (a+b x)}{c+d x}\right )^4}+\frac {(b c-a d)^3 (4 b d f-3 b c g-a d g) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) g^3}{b^2 d^3 \left (b-\frac {d (a+b x)}{c+d x}\right )^3}+\frac {(b c-a d)^2 \left (\left (6 d^2 f^2-8 c d g f+3 c^2 g^2\right ) b^2-2 a d g (2 d f-c g) b+a^2 d^2 g^2\right ) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) g^2}{b^3 d^3 \left (b-\frac {d (a+b x)}{c+d x}\right )^2}+\frac {(b c-a d) (2 b d f-b c g-a d g) \left (2 d^2 f^2 b^2+c^2 g^2 b^2-2 c d f g b^2-2 a d^2 f g b+a^2 d^2 g^2\right ) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) g}{b^4 d^3 \left (b-\frac {d (a+b x)}{c+d x}\right )}+\frac {(b f-a g)^4 (c+d x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{b^4 (a+b x)}\right )d\frac {a+b x}{c+d x}}{2 g (b c-a d)}\right )\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle (b c-a d) \left (\frac {\left (b f-a g-\frac {(d f-c g) (a+b x)}{c+d x}\right )^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 (b c-a d) g \left (b-\frac {d (a+b x)}{c+d x}\right )^4}-\frac {B \left (-\frac {B (b c-a d)^4 \log \left (\frac {a+b x}{c+d x}\right ) g^4}{3 b^4 d^4}+\frac {(b c-a d)^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) g^4}{3 b d^4 \left (b-\frac {d (a+b x)}{c+d x}\right )^3}+\frac {B (b c-a d)^4 \log \left (b-\frac {d (a+b x)}{c+d x}\right ) g^4}{3 b^4 d^4}-\frac {B (b c-a d)^4 g^4}{3 b^3 d^4 \left (b-\frac {d (a+b x)}{c+d x}\right )}-\frac {B (b c-a d)^4 g^4}{6 b^2 d^4 \left (b-\frac {d (a+b x)}{c+d x}\right )^2}-\frac {B (b c-a d)^3 (4 b d f-3 b c g-a d g) \log \left (\frac {a+b x}{c+d x}\right ) g^3}{2 b^4 d^4}+\frac {(b c-a d)^3 (4 b d f-3 b c g-a d g) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) g^3}{2 b^2 d^4 \left (b-\frac {d (a+b x)}{c+d x}\right )^2}+\frac {B (b c-a d)^3 (4 b d f-3 b c g-a d g) \log \left (b-\frac {d (a+b x)}{c+d x}\right ) g^3}{2 b^4 d^4}-\frac {B (b c-a d)^3 (4 b d f-3 b c g-a d g) g^3}{2 b^3 d^4 \left (b-\frac {d (a+b x)}{c+d x}\right )}+\frac {(b c-a d)^2 \left (\left (6 d^2 f^2-8 c d g f+3 c^2 g^2\right ) b^2-2 a d g (2 d f-c g) b+a^2 d^2 g^2\right ) (a+b x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) g^2}{b^4 d^3 (c+d x) \left (b-\frac {d (a+b x)}{c+d x}\right )}+\frac {B (b c-a d)^2 \left (\left (6 d^2 f^2-8 c d g f+3 c^2 g^2\right ) b^2-2 a d g (2 d f-c g) b+a^2 d^2 g^2\right ) \log \left (b-\frac {d (a+b x)}{c+d x}\right ) g^2}{b^4 d^4}+\frac {(b c-a d) (2 b d f-b c g-a d g) \left (-\left (\left (2 d^2 f^2-2 c d g f+c^2 g^2\right ) b^2\right )+2 a d^2 f g b-a^2 d^2 g^2\right ) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log \left (1-\frac {d (a+b x)}{b (c+d x)}\right ) g}{b^4 d^4}+\frac {B (b c-a d) (2 b d f-b c g-a d g) \left (-\left (\left (2 d^2 f^2-2 c d g f+c^2 g^2\right ) b^2\right )+2 a d^2 f g b-a^2 d^2 g^2\right ) \operatorname {PolyLog}\left (2,\frac {d (a+b x)}{b (c+d x)}\right ) g}{b^4 d^4}+\frac {(b f-a g)^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{2 b^4 B}\right )}{2 (b c-a d) g}\right )\) |
(b*c - a*d)*(((b*f - a*g - ((d*f - c*g)*(a + b*x))/(c + d*x))^4*(A + B*Log [(e*(a + b*x))/(c + d*x)])^2)/(4*(b*c - a*d)*g*(b - (d*(a + b*x))/(c + d*x ))^4) - (B*(-1/6*(B*(b*c - a*d)^4*g^4)/(b^2*d^4*(b - (d*(a + b*x))/(c + d* x))^2) - (B*(b*c - a*d)^4*g^4)/(3*b^3*d^4*(b - (d*(a + b*x))/(c + d*x))) - (B*(b*c - a*d)^3*g^3*(4*b*d*f - 3*b*c*g - a*d*g))/(2*b^3*d^4*(b - (d*(a + b*x))/(c + d*x))) - (B*(b*c - a*d)^4*g^4*Log[(a + b*x)/(c + d*x)])/(3*b^4 *d^4) - (B*(b*c - a*d)^3*g^3*(4*b*d*f - 3*b*c*g - a*d*g)*Log[(a + b*x)/(c + d*x)])/(2*b^4*d^4) + ((b*c - a*d)^4*g^4*(A + B*Log[(e*(a + b*x))/(c + d* x)]))/(3*b*d^4*(b - (d*(a + b*x))/(c + d*x))^3) + ((b*c - a*d)^3*g^3*(4*b* d*f - 3*b*c*g - a*d*g)*(A + B*Log[(e*(a + b*x))/(c + d*x)]))/(2*b^2*d^4*(b - (d*(a + b*x))/(c + d*x))^2) + ((b*c - a*d)^2*g^2*(a^2*d^2*g^2 - 2*a*b*d *g*(2*d*f - c*g) + b^2*(6*d^2*f^2 - 8*c*d*f*g + 3*c^2*g^2))*(a + b*x)*(A + B*Log[(e*(a + b*x))/(c + d*x)]))/(b^4*d^3*(c + d*x)*(b - (d*(a + b*x))/(c + d*x))) + ((b*f - a*g)^4*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2)/(2*b^4* B) + (B*(b*c - a*d)^4*g^4*Log[b - (d*(a + b*x))/(c + d*x)])/(3*b^4*d^4) + (B*(b*c - a*d)^3*g^3*(4*b*d*f - 3*b*c*g - a*d*g)*Log[b - (d*(a + b*x))/(c + d*x)])/(2*b^4*d^4) + (B*(b*c - a*d)^2*g^2*(a^2*d^2*g^2 - 2*a*b*d*g*(2*d* f - c*g) + b^2*(6*d^2*f^2 - 8*c*d*f*g + 3*c^2*g^2))*Log[b - (d*(a + b*x))/ (c + d*x)])/(b^4*d^4) + ((b*c - a*d)*g*(2*b*d*f - b*c*g - a*d*g)*(2*a*b*d^ 2*f*g - a^2*d^2*g^2 - b^2*(2*d^2*f^2 - 2*c*d*f*g + c^2*g^2))*(A + B*Log...
3.3.40.3.1 Defintions of rubi rules used
Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_) + (e_.)*(x_))^(q_)*(( f_) + (g_.)*(x_))^(m_.), x_Symbol] :> Simp[(f + g*x)^(m + 1)*(d + e*x)^(q + 1)*((a + b*Log[c*x^n])^p/((q + 1)*(e*f - d*g))), x] - Simp[b*n*(p/((q + 1) *(e*f - d*g))) Int[(f + g*x)^(m + 1)*(d + e*x)^(q + 1)*((a + b*Log[c*x^n] )^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, f, g, m, n, q}, x] && NeQ[e*f - d*g, 0] && EqQ[m + q + 2, 0] && IGtQ[p, 0] && LtQ[q, -1]
Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*(RFx_), x_Symbol] :> With[{ u = ExpandIntegrand[(a + b*Log[c*x^n])^p, RFx, x]}, Int[u, x] /; SumQ[u]] / ; FreeQ[{a, b, c, n}, x] && RationalFunctionQ[RFx, x] && IGtQ[p, 0]
Int[((A_.) + Log[(e_.)*((a_.) + (b_.)*(x_))^(n_.)*((c_.) + (d_.)*(x_))^(mn_ )]*(B_.))^(p_.)*((f_.) + (g_.)*(x_))^(m_.), x_Symbol] :> Simp[(b*c - a*d) Subst[Int[(b*f - a*g - (d*f - c*g)*x)^m*((A + B*Log[e*x^n])^p/(b - d*x)^(m + 2)), x], x, (a + b*x)/(c + d*x)], x] /; FreeQ[{a, b, c, d, e, f, g, A, B , n}, x] && EqQ[n + mn, 0] && IGtQ[n, 0] && NeQ[b*c - a*d, 0] && IntegerQ[m ] && IGtQ[p, 0]
\[\int \left (g x +f \right )^{3} \left (A +B \ln \left (\frac {e \left (b x +a \right )}{d x +c}\right )\right )^{2}d x\]
\[ \int (f+g x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2 \, dx=\int { {\left (g x + f\right )}^{3} {\left (B \log \left (\frac {{\left (b x + a\right )} e}{d x + c}\right ) + A\right )}^{2} \,d x } \]
integral(A^2*g^3*x^3 + 3*A^2*f*g^2*x^2 + 3*A^2*f^2*g*x + A^2*f^3 + (B^2*g^ 3*x^3 + 3*B^2*f*g^2*x^2 + 3*B^2*f^2*g*x + B^2*f^3)*log((b*e*x + a*e)/(d*x + c))^2 + 2*(A*B*g^3*x^3 + 3*A*B*f*g^2*x^2 + 3*A*B*f^2*g*x + A*B*f^3)*log( (b*e*x + a*e)/(d*x + c)), x)
Timed out. \[ \int (f+g x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2 \, dx=\text {Timed out} \]
Leaf count of result is larger than twice the leaf count of optimal. 2140 vs. \(2 (843) = 1686\).
Time = 0.32 (sec) , antiderivative size = 2140, normalized size of antiderivative = 2.45 \[ \int (f+g x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2 \, dx=\text {Too large to display} \]
1/4*A^2*g^3*x^4 + A^2*f*g^2*x^3 + 3/2*A^2*f^2*g*x^2 + 2*(x*log(b*e*x/(d*x + c) + a*e/(d*x + c)) + a*log(b*x + a)/b - c*log(d*x + c)/d)*A*B*f^3 + 3*( x^2*log(b*e*x/(d*x + c) + a*e/(d*x + c)) - a^2*log(b*x + a)/b^2 + c^2*log( d*x + c)/d^2 - (b*c - a*d)*x/(b*d))*A*B*f^2*g + (2*x^3*log(b*e*x/(d*x + c) + a*e/(d*x + c)) + 2*a^3*log(b*x + a)/b^3 - 2*c^3*log(d*x + c)/d^3 - ((b^ 2*c*d - a*b*d^2)*x^2 - 2*(b^2*c^2 - a^2*d^2)*x)/(b^2*d^2))*A*B*f*g^2 + 1/1 2*(6*x^4*log(b*e*x/(d*x + c) + a*e/(d*x + c)) - 6*a^4*log(b*x + a)/b^4 + 6 *c^4*log(d*x + c)/d^4 - (2*(b^3*c*d^2 - a*b^2*d^3)*x^3 - 3*(b^3*c^2*d - a^ 2*b*d^3)*x^2 + 6*(b^3*c^3 - a^3*d^3)*x)/(b^3*d^3))*A*B*g^3 + A^2*f^3*x - 1 /12*(6*a^3*c*d^3*g^3 - 3*(8*c*d^3*f*g^2 - c^2*d^2*g^3)*a^2*b + 2*(18*c*d^3 *f^2*g - 6*c^2*d^2*f*g^2 + c^3*d*g^3)*a*b^2 + (24*c*d^3*f^3*log(e) - (6*g^ 3*log(e) + 11*g^3)*c^4 + 12*(2*f*g^2*log(e) + 3*f*g^2)*c^3*d - 36*(f^2*g*l og(e) + f^2*g)*c^2*d^2)*b^3)*B^2*log(d*x + c)/(b^3*d^4) + 1/2*(4*a*b^3*d^4 *f^3 - 6*a^2*b^2*d^4*f^2*g + 4*a^3*b*d^4*f*g^2 - a^4*d^4*g^3 - (4*c*d^3*f^ 3 - 6*c^2*d^2*f^2*g + 4*c^3*d*f*g^2 - c^4*g^3)*b^4)*(log(b*x + a)*log((b*d *x + a*d)/(b*c - a*d) + 1) + dilog(-(b*d*x + a*d)/(b*c - a*d)))*B^2/(b^4*d ^4) + 1/12*(3*B^2*b^4*d^4*g^3*x^4*log(e)^2 + 2*(a*b^3*d^4*g^3*log(e) + (6* d^4*f*g^2*log(e)^2 - c*d^3*g^3*log(e))*b^4)*B^2*x^3 - ((3*g^3*log(e) - g^3 )*a^2*b^2*d^4 - 2*(6*d^4*f*g^2*log(e) - c*d^3*g^3)*a*b^3 - (18*d^4*f^2*g*l og(e)^2 - 12*c*d^3*f*g^2*log(e) + (3*g^3*log(e) + g^3)*c^2*d^2)*b^4)*B^...
\[ \int (f+g x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2 \, dx=\int { {\left (g x + f\right )}^{3} {\left (B \log \left (\frac {{\left (b x + a\right )} e}{d x + c}\right ) + A\right )}^{2} \,d x } \]
Timed out. \[ \int (f+g x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2 \, dx=\int {\left (f+g\,x\right )}^3\,{\left (A+B\,\ln \left (\frac {e\,\left (a+b\,x\right )}{c+d\,x}\right )\right )}^2 \,d x \]